package com.lanou.service.register;

import com.lanou.bean.UserBean;
import com.lanou.mapper.registerdao.RegisterMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by dllo on 18/2/26.
 */
@Component
public class RegisterServiceImp implements RegisterService {
    @Resource
    RegisterMapper registerMapper;

    @Override
    public UserBean hasRegister( String name) {
        return registerMapper.hasRegister(name);
    }

    @Override
    public void registeruser(String name,String password,  String tel,String address) {
        registerMapper.registeruser(name,password,tel,address);
    }

}
